package com.zimo.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.zimo.web.entity.Weight;
import com.zimo.web.mapper.WeightMapper;
import com.zimo.web.service.WeightService;


@Service("weightService")
public class WeightServiceImpl implements WeightService {

    private Logger log = Logger.getLogger(WeightServiceImpl.class);
    
    @Resource
    private WeightMapper weightMapper;
    
    @Override
    public List<Weight> getWeightListByName(String uName) {
        log.info("service start.....");
        List<Weight> list = weightMapper.getWeightByName(uName);
        log.info("service list ["+(list!=null?list.size():0)+"]");
        return list;
    }

}
